package rmi.impl;

import java.rmi.RemoteException;

import rmi.intf.Intf;
import rmi.chatframe.ChatFrame;

import javax.rmi.PortableRemoteObject;

	public class Impl extends PortableRemoteObject implements Intf{
		ChatFrame readFrame;

		public Impl(ChatFrame cf) throws RemoteException {
			super();
			readFrame = cf;
		}

		public void sendName(String name) throws RemoteException {
			readFrame.setVisible(true);
			readFrame.seeText.append(name + "\n");
		}
}
